﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPageNguoiDung.Master" AutoEventWireup="true" CodeBehind="DanhMucSP.aspx.cs" Inherits="DoAn.Mua.DanhMucSP" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxRoundPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxRoundPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxTreeView" tagprefix="dx" %>
<%@ Register assembly="CollectionPager" namespace="SiteUtils" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
   
    <style type="text/css">
        .style1
        {
            width: 100%;
            border:1px;
        }
        .style2
        {
            width: 230px;
            height: 50px;
            
        }
        .style3
        {
            width: 100%;
            border: 1px solid #FF00FF;
            margin-top:-15px;
        }
        .style4
        {
            width: 100%;
        }
        .style5
        {
            width: 160px;
        }
        .style6
        {
            width: 160px;
            height: 33px;
        }
        .style7
        {
            height: 33px;
        }
    </style>
   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
    <table class="style1">
        <tr>
            <td class="style2">
                <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" 
                    CssFilePath="~/App_Themes/RedWine/{0}/styles.css" CssPostfix="RedWine" HeaderText="Danh Mục Sản Phẩm" 
                    SpriteCssFilePath="~/App_Themes/RedWine/{0}/sprite.css" Width="230px" >
                    <ContentPaddings Padding="0px" />
                    <PanelCollection>
<dx:PanelContent runat="server" SupportsDisabledAttribute="True">
<dx:ASPxTreeView ID="trvDanhMuc" runat="server" 
                    OnNodeClick="trvDanhMuc_NodeClick" Width="230px">
                    <Images SpriteCssFilePath="~/App_Themes/Aqua/{0}/sprite.css">
                        <NodeLoadingPanel Url="~/App_Themes/Aqua/Web/tvNodeLoading.gif">
                        </NodeLoadingPanel>
                        <LoadingPanel Url="~/App_Themes/Aqua/Web/Loading.gif">
                        </LoadingPanel>
                    </Images>
                    <Styles CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua">
                    </Styles>
                </dx:ASPxTreeView>
</dx:PanelContent>
</PanelCollection>
                </dx:ASPxRoundPanel>
            </td>
            <td rowspan="2">
                <dx:ASPxRoundPanel ID="ASPxRoundPanel2" runat="server" 
                    CssFilePath="~/App_Themes/RedWine/{0}/styles.css" CssPostfix="RedWine" 
                    GroupBoxCaptionOffsetX="0px" GroupBoxCaptionOffsetY="0px" 
                    SpriteCssFilePath="~/App_Themes/RedWine/{0}/sprite.css" Width="740px">
                    <ContentPaddings Padding="0px" />
                    <PanelCollection>
<dx:PanelContent runat="server" SupportsDisabledAttribute="True">
    <asp:DataList ID="DataList1" runat="server" BackColor="White" 
        BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
        GridLines="Both" HorizontalAlign="Left" RepeatColumns="2" Width="740px">
        <EditItemStyle BorderStyle="Dotted" />
        <FooterStyle BackColor="White" ForeColor="#000066" />
        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
        <ItemStyle ForeColor="#000066" />
        <ItemTemplate>
            <br />
            <table class="style3" cellpadding="5" cellspacing="5">
                <tr>
                    <td>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <dx:ASPxHyperLink ID="ASPxHyperLink1" runat="server" 
                            ImageUrl='<%# Eval("HinhAnh") %>' ImageWidth="200px" 
                            NavigateUrl='<%# "ChiTietSanPham.aspx?masan="+Eval("MaSan") %>' Text="ASPxHyperLink" 
                            Width="200px" />
                        <br />
                        &nbsp;&nbsp; Tên:<asp:HyperLink ID="HyperLink2" runat="server" 
                            NavigateUrl='<%# "ChiTietSanPham.aspx?masan="+Eval("MaSan") %>' 
                            Text='<%# Eval("TenSan") %>'></asp:HyperLink>
                        <br />
                        &nbsp;&nbsp; Người bán:<asp:Label ID="Label2" runat="server" 
                            Text='<%# Eval("TenTaiKhoan") %>'></asp:Label>
                        <br />
                        &nbsp;&nbsp; Giá hiện thời:<asp:Label ID="Label3" runat="server" 
                            Text='<%# String.Format("{0:0,0}vnd", Eval("GiaSanHienTai")) %>' 
                            ForeColor="Red"></asp:Label>
                        <br />
                        &nbsp;&nbsp; Số lượng khách hàng:<asp:Label ID="Label4" runat="server" 
                            Text='<%# Eval("SoNguoiRaGia") %>'></asp:Label>
                        <br />
                        &nbsp;&nbsp; Dự kiến kết thúc:<asp:Label ID="Label5" runat="server" 
                            Text='<%# Eval("NgayKetThucSan") %>'></asp:Label>
                        <br />
                        &nbsp;&nbsp;&nbsp;
                        <asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Eval("muanhanh") %>'></asp:HyperLink>
                        <br />
                        &nbsp; Mô tả:<asp:Label ID="Label6" runat="server" Text='<%# Eval("MoTa") %>'></asp:Label>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
        <SelectedItemStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
    </asp:DataList>
                        </dx:PanelContent>
</PanelCollection>
                </dx:ASPxRoundPanel>
            </td>
        </tr>
        <tr>
            <td class="style2">
                <dx:ASPxRoundPanel ID="ASPxRoundPanel3" runat="server" 
                    CssFilePath="~/App_Themes/RedWine/{0}/styles.css" CssPostfix="RedWine" 
                    GroupBoxCaptionOffsetY="-28px" HeaderText="Tìm kiếm" 
                    SpriteCssFilePath="~/App_Themes/RedWine/{0}/sprite.css" Width="230px">
                    <ContentPaddings Padding="0px" />
                    <PanelCollection>
<dx:PanelContent runat="server" SupportsDisabledAttribute="True">
    <table class="style4">
        <tr>
            <td class="style6">
                <asp:TextBox ID="txttimkiem" runat="server" Width="152px"></asp:TextBox>
            </td>
            <td class="style7">
                <asp:ImageButton ID="ImageButton1" runat="server" 
                    ImageUrl="~/Images/magnifying-glass-600x450.jpg" OnClick="ImageButton1_Click" 
                    Width="40px" />
            </td>
        </tr>
        <tr>
            <td class="style5">
                <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="~/TimKiem.aspx">Tìm kiếm năng cao</asp:HyperLink>
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
                        </dx:PanelContent>
</PanelCollection>
                </dx:ASPxRoundPanel>
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>

                <cc1:CollectionPager ID="CollectionPager1" runat=server
    FirstText="&amp;nbsp; Đầu &amp;nbsp;" 
    BackText="« Trước &amp;nbsp;" 
    LabelText="Page:" 
    LastText="&amp;nbsp; Cuối &amp;nbsp;" 
    NextText="&amp;nbsp; Sau  »" 
    ShowFirstLast="True" 
    SliderSize="3" PagingMode="PostBack"
    runat="server" BackNextLinkSeparator="" BackNextLocation="Split" 
    PageNumbersDisplay="Numbers" ResultsLocation="Bottom" 
    BackNextDisplay="Buttons" MaxPages="1000" PageSize="4" 
        IgnoreQueryString="False" ResultsFormat="Displaying Produces {0}-{1} (of {2})" 
        ShowLabel="True" ShowPageNumbers="True" UseSlider="True" 
        HideOnSinglePage="True">
</cc1:CollectionPager>
            </td>
        </tr>
      </table>
</asp:Content>
